package org.meteorshower.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.meteorshower.dao.IRenterDao;
import org.meteorshower.domain.Renter;
import org.meteorshower.service.IRenterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

@Service
public class RenterServiceImpl extends ServiceImpl<IRenterDao,Renter> implements IRenterService {

    @Autowired
    private IRenterDao renterDao;

    @Override
    public UserDetails loadUserByUsername(String s) throws UsernameNotFoundException {
        return renterDao.login(s);
    }
}
